var all = 99*99;

var sum = 0;
for(var i=2; i<=100; i++) {
    sum += Math.floor(Math.log(100)/Math.log(i)) - 1;
}

print(all-sum);

var hash=[], count=0;
for(var a=2; a<=100; a++)
 for(var b=2; b<=100; b++) {
    var tmp = Math.pow(a,b);
    if(!hash[tmp]) {
        count ++;
        hash[tmp] = 1;
    }
 }
print(count); 
